package ssx.demo.hbase2demo;

import org.apache.hadoop.hbase.client.*;
import org.apache.hadoop.hbase.regionserver.HRegion;
import org.apache.hadoop.hbase.regionserver.Region;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.test.context.SpringBootTest;
import ssx.demo.hbase2demo.conf.ConfDemo;
import ssx.demo.hbase2demo.service.SerDemo;

@SpringBootTest
public class runService {

    @Autowired
            @Qualifier("myHbaseService")
    SerDemo serDemo;

    @Test
    public void te() throws Exception{
        serDemo.addTab();
        serDemo.setValue("hello","col_b","row_002");
        serDemo.getValue("row_002");

        Connection con = new ConfDemo().getCon();
//        RegionLocator regionLocator = con.getRegionLocator();
//        con.getTable().
        HRegion.RowLockImpl rowLock = new HRegion.RowLockImpl(null,null);
        rowLock.release();


    }
}
